package com.kitty.ws;

import java.util.List; 
import javax.jws.WebService;

@WebService(endpointInterface = "com.kitty.ws.HelloWorld", serviceName = "HelloWorld")
public class HelloWorldImpl implements HelloWorld {

	public String sayHi(String text) {
		return "Hello " + text;
	}

	public String sayHiToUser(String user) {

		return "Hello " + user;
	}
	public String sayHiToUser2(User user) {
		return "hello " + user;
	}

	public String[] SayHiToUserList(List<String> userList) {
		String[] result = new String[userList.size()];
		int i = 0;
		for (String u : userList) {
			result[i] = "Hello " + u;
			System.out.println(result[i]);
			i++;
		}
		return result;
	}
}
